﻿using System.Threading.Tasks;

namespace Frame.Core.Auth
{
    /// <summary>
    /// 权限处理接口
    /// </summary>
    public interface IPermissionHandler
    {
        /// <summary>
        /// 权限验证
        /// </summary>
        /// <param name="powerName"></param>
        /// <returns></returns>
        Task<bool> CheckPower(string powerName);
    }
}
